package com.umpay.dto.merBusi.splitAcc.trans;

import com.umpay.dto.merBusi.splitAcc.SplitAccOrderData;
import com.umpay.verify.Verifiable;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.Valid;
import java.util.List;

/**
 * 分账交易请求参数
 * @ClassName: SplitAccOrderReq  
 * @Description: TODO(这里用一句话描述这个类的作用)  
 * @author hp  
 * @date 2018年1月23日
 */
public class SplitAccTransReq implements Verifiable {
	
	@NotBlank
	String rpid;//rpid
	@NotBlank
	String merId;//商户号
	@NotBlank
	String orderId;//订单号
	@NotBlank
	String orderDate;//订单日期
	@NotBlank
	String amount;//分账金额
	@NotBlank
	String amtType;//币种
	@NotBlank
	String splitTrace;//分账流水
	@NotBlank
	String instId;//机构号
	@NotBlank
	String oriTrace;//原消费流水
	@NotBlank
	String oriInstId;//原消费机构流水
	@NotBlank
	String splitType;//分账类型
	@NotBlank
	String tradeType;//交易类型
	@NotBlank
	String splitCategory;//分账类别
	@NotBlank
	String payType;//消费支付方式

	// 集合
    @Valid
    List<SplitAccOrderData> splitDatas;

    
	public String getRpid() {
		return rpid;
	}

	public void setRpid(String rpid) {
		this.rpid = rpid;
	}

	public String getMerId() {
		return merId;
	}

	public void setMerId(String merId) {
		this.merId = merId;
	}

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}

	public String getAmount() {
		return amount;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public String getAmtType() {
		return amtType;
	}

	public void setAmtType(String amtType) {
		this.amtType = amtType;
	}

	public String getSplitTrace() {
		return splitTrace;
	}

	public void setSplitTrace(String splitTrace) {
		this.splitTrace = splitTrace;
	}

	public String getInstId() {
		return instId;
	}

	public void setInstId(String instId) {
		this.instId = instId;
	}

	public String getOriTrace() {
		return oriTrace;
	}

	public void setOriTrace(String oriTrace) {
		this.oriTrace = oriTrace;
	}

	public String getSplitType() {
		return splitType;
	}

	public void setSplitType(String splitType) {
		this.splitType = splitType;
	}

	public String getSplitCategory() {
		return splitCategory;
	}

	public void setSplitCategory(String splitCategory) {
		this.splitCategory = splitCategory;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public List<SplitAccOrderData> getSplitDatas() {
		return splitDatas;
	}

	public void setSplitDatas(List<SplitAccOrderData> splitDatas) {
		this.splitDatas = splitDatas;
	}
	

	public String getOriInstId() {
		return oriInstId;
	}

	public void setOriInstId(String oriInstId) {
		this.oriInstId = oriInstId;
	}
	
	public String getTradeType() {
		return tradeType;
	}

	public void setTradeType(String tradeType) {
		this.tradeType = tradeType;
	}

	@Override
	public String toString() {
		return "SplitAccTransReq [rpid=" + rpid + ", merId=" + merId + ", orderId=" + orderId + ", orderDate="
				+ orderDate + ", amount=" + amount + ", amtType=" + amtType + ", splitTrace=" + splitTrace + ", instId="
				+ instId + ", oriTrace=" + oriTrace + ", oriInstId=" + oriInstId + ", splitType=" + splitType
				+ ", tradeType=" + tradeType + ", splitCategory=" + splitCategory + ", payType=" + payType
				+ ", splitDatas=" + splitDatas + "]";
	}
    
	

}
